<?php
namespace app\api\controller;

use app\admin\model\wenjian\Wenjian;
use app\common\controller\Api;

class Zhence extends Api{
    protected $noNeedLogin = ['*'];
    protected $noNeedRight = ['*'];

    public function yinsi(){
        $wenjianModel = new Wenjian();
        $info = $wenjianModel->where(['id'=>1])->find()->toArray();
        $this->success('成功',$info);
    }

    public function fuwu(){
        $wenjianModel = new Wenjian();
        $info = $wenjianModel->where(['id'=>2])->find()->toArray();
        $this->success('成功',$info);
    }
}